package com.bootx.entity;

import jakarta.persistence.Column;
import jakarta.persistence.Entity;
import jakarta.validation.constraints.NotNull;

@Entity
public class BetRecord extends BaseEntity<Long>{

    @NotNull
    @Column(updatable = false,nullable = false)
    private Long lotteryCode;

    @NotNull
    @Column(unique = true,updatable = false,nullable = false)
    private Long sn;

    private String betType;

    private Double money;

    private Integer num;

    private Integer win;

    public Long getLotteryCode() {
        return lotteryCode;
    }

    public void setLotteryCode(Long lotteryCode) {
        this.lotteryCode = lotteryCode;
    }

    public Long getSn() {
        return sn;
    }

    public void setSn(Long sn) {
        this.sn = sn;
    }

    public String getBetType() {
        return betType;
    }

    public void setBetType(String betType) {
        this.betType = betType;
    }

    public Double getMoney() {
        return money;
    }

    public void setMoney(Double money) {
        this.money = money;
    }

    public Integer getNum() {
        return num;
    }

    public void setNum(Integer num) {
        this.num = num;
    }

    public Integer getWin() {
        return win;
    }

    public void setWin(Integer win) {
        this.win = win;
    }
}
